package com.ty.day3;

import java.util.Calendar;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/24 14:09
 */
public class CalendarAdd {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();
        c.add(Calendar.YEAR,5);
        c.add(Calendar.MONTH,5);
        c.add(Calendar.DATE,50);
        System.out.println(c.getTime());
        c.set(2024,5,7);
        c.add(Calendar.YEAR,3);
        c.add(Calendar.MONTH,3);
        c.add(Calendar.DATE,3);
        System.out.println(c.getTime());
        System.out.println(Integer.getInteger("102e",123));

    }
}
